// +build darwin dragonfly freebsd linux netbsd openbsd

package proc

import (
	"os/exec"
	"syscall"
)

func setProcessGroup(c *exec.Cmd, _ bool) {
	if c.SysProcAttr == nil {
		c.SysProcAttr = &syscall.SysProcAttr{Setpgid: true}
	} else {
		c.SysProcAttr.Setpgid = true
	}
}
